<?php $this->load->view('header') ?>

<!-- CONTENT -->
<div id="content">
<div class="column full">
		
		<div class="box">
		<div class="box-header">Edit Tipe Rekening</div>
		<div class="box-content">
        <?php echo isAccess('akuntansi','rektipe','view') ? anchor('akuntansi/rekTipe/view', '<span class="icon_text preview"></span>Daftar Tipe Rekening', 'class="button white"') : ''; ?>
        <br /><br />      
        
            <?php if (isset($errorMessage)) : ?>
            	<div class="notification <?php echo ((isset($isSuccess) && $isSuccess) ? 'success' : 'error');?>"><?php echo $errorMessage; ?></div>
	        <?php endif; ?>    	
	        
	        <?php //if (!(isset($isSuccess) && $isSuccess)) : ?>
            <?php  echo form_open('akuntansi/rekTipe/edit/id/'.get_data($uri,'id').'/time/' . time(),array('name'=>'formAddRekTipe','id'=>'formAddRekTipe','class'=>'frModalLoad'),array('kirim'=>'kirim')); ?>
            <table>
                <tr>
                    <td width="150">Tipe</td>
                    <td>
                        <br />
                        <select name='rekTipe'>
                        	<option value=''>Pilih Tipe</option>
                        	<?php if($listRekTipe) foreach($listRekTipe as $tipe):?>
                        		<option value='<?php echo $tipe?>' <?php echo get_data($dataEdit,'rekTipe') == $tipe ? 'selected="selected"' : '';?>>
                        			<?php echo $tipe?>
								</option>
                        	<?php endforeach;?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="150">Nama</td>
                    <td>
                        <br /><?php echo form_input(array('name'=>'rekTipeNama','value'=>get_data($dataEdit,'rekTipeNama'), 'class'=> 'form-field full'));?>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <?php echo form_submit('submit','Simpan', 'class="button themed"');?>
                    </td>
                </tr>
            </table>
            </form>
            <br />
			<?php //endif;?>
			
          </div>
        </div>
      </div>
      <!-- End Widget-->
      
      <div class="clear"></div>
    </div>
  </div> 

<?php $this->load->view('footer') ?>